Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-transform-dotall-regex

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-dotall-regex

Compile regular expressions using the `s` (`dotAll`) flag to ES5.

  • 7.25.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25M
increased by5.28%
Maintainers
4
Weekly downloads
 
Created

What is @babel/plugin-transform-dotall-regex?

The @babel/plugin-transform-dotall-regex package is a plugin for Babel, a JavaScript compiler, that transforms regular expressions with the dotAll flag (s flag) to be compatible with environments that do not support this feature. The dotAll flag allows the dot (.) in regular expressions to match any character, including newline characters, which it normally does not match. This plugin ensures that code using the dotAll flag can run in environments that have not implemented this ES2018 feature.

What are @babel/plugin-transform-dotall-regex's main functionalities?

Transformation of dotAll regular expressions

This code demonstrates how a regular expression with the dotAll flag (s flag) is written. The @babel/plugin-transform-dotall-regex plugin would transform this expression into a form that can be executed in JavaScript environments that do not support the dotAll flag, ensuring compatibility.

"use strict";\n\nvar regex = /foo.bar/s;

Other packages similar to @babel/plugin-transform-dotall-regex

Keywords

FAQs

Package last updated on 22 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc